<%--
    Document   : lapphieu
    Created on : Nov 30, 2011, 11:14:34 PM
    Author     : VIC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.net.InetAddress" %>
<%@page import="Beans.*,java.util.Vector,Models.*"%>
<%
    if (session.getAttribute("nv") == null) {
                response.sendRedirect("../index.jsp");
            }
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;user-scalable=0;" />
        <title>i-Order</title>
        <meta http-equiv="Content-Language" content="vi-vn" />
        <meta name="description" content="i-Order System " />
        <meta name="author" content="Quang Tan Nghia - Nguyen Thi Hoa" />

     
        <script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="../js/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript" src="../js/jquery.alerts.js"></script>
        <script type="text/javascript" src="../js/ajax.js"></script>
         <script type="text/javascript" src="../js/waiter.js"></script>
        <script type="text/javascript" src="../js/msg.js"></script>
        <style type="text/css">
           select { visibility: visible; -webkit-appearance: menulist-text;}
        </style>
    </head>
     <%
                int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
                String dsts = " 'area','invainfo', 'table', 'quantity','food','sl','dvt','del','nocus','notes' "; // chuỗi chứa các mã tham số của trang này.
                ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.
                String area = mdsts[0].getTenTS();
                String del = mdsts[1].getTenTS();
                String dvt = mdsts[2].getTenTS();
                String food = mdsts[3].getTenTS();
                String invalid = mdsts[4].getTenTS();
                String nocus = mdsts[5].getTenTS();
                String notes = mdsts[6].getTenTS();
                String quantity = mdsts[7].getTenTS();
                String sl = mdsts[8].getTenTS();
                String table = mdsts[9].getTenTS();
                
    %>
    <body onload="window.scrollTo(1,0);">
            <div id="title">
            <a class="tleft" href="waiter.jsp">
                    <img src="../images/back.png">
             </a>
            iOrder
            <a href="../DangNhap_Controller?action=logout" class="tright">
                    <img src="../images/logout.png">
            </a>
            </div>
            <div class="cform" style="float: left;width: 50%;">
                <form name="phieugoi">
                        <div class="phieuchinh">
                        <p>
                            <label><%=area %> : </label>
                            <input onclick="LoadKhuVuc('lp_makv','lp_tenkv');" onkeydown="ClearValue('lp_makv');" onkeyup="ClearValue('lp_makv');" class="text-input" type="text" name="khuvuc" id="lp_tenkv" />
                            <input type="hidden" id="lp_makv" name="makv"/>
                        </p>
                        <p>
                            <label><%=table %> :   </label>
                            <input onclick="LoadBan('free','lp_maban','lp_tenban','lp_makv');" onkeydown="ClearValue('lp_maban');" onkeyup="ClearValue('lp_maban');" class="text-input" name="ban" type="text" id="lp_tenban" />
                            <input type="hidden" name="maban" id="lp_maban"/>
                        </p>
                        <p>
                            <label><%=nocus %> :    </label>
                            <input  class="text-input" type="text" name="sokhach" />
                        </p>
                        <p>
                            <label><%=food %> :   </label>
                            <input onkeydown="LoadMonAn();"  onkeyup="LoadMonAn();" class="text-input" type="text" name="monan" id="monan" />
                            <input  type="hidden" id="mama" name="mama"/>
                            <input style="width: 25px;"  type="button" value="+" onclick="DatMon('<%=invalid %>');"/>
                        </p>
                        <p>
                            <label><%=dvt %> :   </label>
                            <input onkeydown="LoadDVT();" onkeyup="LoadDVT();"  class="text-input" type="text" name="dvt" id="dvt" />
                            <input type="hidden" id="madvt" name="madvt"/>
                        </p>
                        </div>
                        <p>
                            <label><%=quantity %> :   </label>
                            <input  class="text-input" type="text" name="soluong" />
                            <input type="hidden" name="tuychon"/>
                            <input style="width: 25px;"  type="button" value="..." onclick=" ShowGhiChu();"/>
                        </p>
                        <div class="ghichu" style="display: none">
                            <p id="tuychon"></p>
                                <p>
                                <label><%=notes %> :   </label>
                                <textarea name="ghichu" cols="22" rows="6"></textarea>
                                </p>                         
                        </div>                                        
                    </form>
                </div>
                <div class="cform" id="phieu" style="float: left;width: 50%;">
                    <table border="0">
            <thead>
                <tr>
                    <th><%=food %></th>
                    <th><%=sl %></th>
                    <th><%=dvt %></th>
                    <th><%=del %></th>
                </tr>
            </thead>
                    </table>
                </div>
    </body>
</html>
